namespace Shumei.EFCore.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class change : DbMigration
    {
        public override void Up()
        {
            RenameTable(name: "dbo.CourseStudyRecords", newName: "Course_StudyRecord");
            RenameTable(name: "dbo.CourseStudies", newName: "Course_Study");
            //RenameTable(name: "dbo.CourseStudy", newName: "UserCourses");
            //RenameColumn(table: "dbo.UserCourses", name: "StudentId", newName: "User_account");
            //RenameColumn(table: "dbo.UserCourses", name: "CourseId", newName: "Course_Id");
            //RenameIndex(table: "dbo.UserCourses", name: "IX_StudentId", newName: "IX_User_account");
            //RenameIndex(table: "dbo.UserCourses", name: "IX_CourseId", newName: "IX_Course_Id");
        }
        
        public override void Down()
        {
            //RenameIndex(table: "dbo.UserCourses", name: "IX_Course_Id", newName: "IX_CourseId");
            //RenameIndex(table: "dbo.UserCourses", name: "IX_User_account", newName: "IX_StudentId");
            //RenameColumn(table: "dbo.UserCourses", name: "Course_Id", newName: "CourseId");
            //RenameColumn(table: "dbo.UserCourses", name: "User_account", newName: "StudentId");
            //RenameTable(name: "dbo.UserCourses", newName: "CourseStudy");
            //RenameTable(name: "dbo.Course_Study", newName: "CourseStudies");
            //RenameTable(name: "dbo.Course_StudyRecord", newName: "CourseStudyRecords");
        }
    }
}
